#pragma once

#include "QkBaseView.h"

class QkComicView : public QkBaseView
{
	Q_OBJECT
public:
	QkComicView();
	QkComicView(QWidget *parent);
	~QkComicView();

protected:
	void mouseReleaseEvent(QMouseEvent *event);
	void resizeEvent(QResizeEvent *event);
	void activated();
	void deactivated();

private slots:
	void on_prevAction_triggered();
	void on_nextAction_triggered();

private:
	void init();
	void updateView();
	void updatePixmapLayout();
	virtual QKindleViewId viewId() const;

private:
	QGraphicsView *m_graphicView;
	QStringList m_imageList;
	int m_index;
	QString m_folder;
	QList<QAction *> m_actions;
	QGraphicsPixmapItem *m_pixmapItem;
};
